<?php
namespace Admin\Model;
use Think\Model;
class ArticleCategoryModel extends Model {
    //自动验证
    protected $_validate = array(
         array('arc_id','require','必须！',self::EXISTS_VALIDATE ),
         array('arc_name','require','文章标题必须！',self::EXISTS_VALIDATE ),
         array('arc_createtime','require','创建时间必须！',self::EXISTS_VALIDATE ),
         array('arc_updatetime','require','必须！',self::EXISTS_VALIDATE ),
         array('arc_status','require','状态必须！',self::EXISTS_VALIDATE ),
         array('arc_order','require','分类排序必须！',self::EXISTS_VALIDATE ),
         array('arco_id','require','所属栏目id必须！',self::EXISTS_VALIDATE ),
         
    );
    // 自动填充设置
    protected $_auto = array(
         array('arc_createtime','time',self:: MODEL_INSERT,'function'),
         array('arc_updatetime','time',self:: MODEL_INSERT,'function'),
         array('arc_updatetime','time',self:: MODEL_UPDATE,'function'),
         
    );
}